<template>
 <div class="b">
  {{Flag}}
</div>
</template>
<script setup lang='ts'>

// import { Flag } from '@element-plus/icons-vue';
import Bus from '../../utils/Ts/Bus'
import { ref } from 'vue';

let Flag = ref(false)
Bus.on('on-click',(flag:boolean)=>{
  Flag.value = flag
})
// type Props  = {
//   flag:boolean
// }
// defineProps<Props>()

</script>

<style scoped lang='less'>
.b{
  width: 200px;
  height: 200px;
  color: #fff;
  background: red;
}
</style>